python transform two columns to a list combine

29

df["pair_var"] = df[["var_1", "var_2"]].values.tolist()

Comments

Submit
0 Comments